package kau.dao;

import java.util.ArrayList;

import kau.exception.DuplicationException;
import kau.exception.RecordNotFoundException;
import kau.vo.Board;

public interface BoardDAOIF {
	public abstract void insert(Board board) throws DuplicationException;

	public abstract void update(Board board) throws RecordNotFoundException;

	public abstract void delete(int bNumber, int courseId)
			throws RecordNotFoundException;

	public abstract Board getBoard(int bNumber) throws RecordNotFoundException;
	
	public abstract Board getBoard(int courseId,String title);

	public abstract ArrayList<Board> getAllBoards();

	// PermissionMapper
	// boardUpdatePermission(게시판등급제한관리)
	public abstract void boardUpdatePermission(Board board)
			throws RecordNotFoundException;

	public abstract int getMaxbNumber();
}
